public class Test {
    public static void main(String[] args) {
        LinkedList list = new LinkedList();
//        list.addFirst(3);
//        list.addFirst(2);
//        list.addFirst(1);
        list.addLast(5);
        list.addLast(3);
        list.addLast(4);
        list.addLast(5);

        //list.addIndex(3,13);

        //System.out.println(list.contains(16));
        //list.remove(15);

        list.removeAllKey(2);

        list.display();
    }
}
